﻿using System.Diagnostics;
using Hopscotch.Domain.Common;
using Hopscotch.Domain.Common.Enums;
using Newtonsoft.Json;

namespace Hopscotch.Domain.Finance
{
    [DebuggerDisplay("Ticker = {Ticker}")]
    [JsonObject(ItemTypeNameHandling = TypeNameHandling.Auto)]
    public partial class EquityInstrument
    {
        public override InstrumentType InstrumentType
        {
            get { return InstrumentType.Equity; }
        }

        public override string Symbol
        {
            get { return Ticker; }
            set { Ticker = value; }
        }
    }
}
